﻿using Mes_app;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Mes_app_control
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Login_Form login_Form = new Login_Form();

            //界面转换
            login_Form.ShowDialog();
            if (login_Form.DialogResult == DialogResult.OK)
            {

                login_Form.Dispose();
                Application.Run(new Main_Form());
                // login_Form.
            }
            else if (login_Form.DialogResult == DialogResult.Cancel)
            {
                login_Form.Dispose();
                return;
            }

            // Application.EnableVisualStyles();
            //  Application.SetCompatibleTextRenderingDefault(false);
            //  Application.Run(new Main());

        }
        /*
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Main_Form());
        }
        */
    }
}
